﻿using System.Collections.Generic;

namespace lwzlz.Application.System.Dto
{
    /// <summary>
    /// 角色权限
    /// </summary>
    public class RolePermissionOutput
    {
        public int Id { get; set; }
        /// <summary>
        /// 上级菜单Id
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 按钮列表
        /// </summary>
        public IEnumerable<SysButton> ButtonList { get; set; }
    }

    /// <summary>
    /// 用户权限
    /// </summary>
    public class UserPermissionOutput
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 是否为无效的（角色权限无法操作）
        /// </summary>
        public bool IsDisabled { get; set; }
        /// <summary>
        /// 使用启用
        /// </summary>
        public IEnumerable<SysButton> ButtonList { get; set; }
    }

    /// <summary>
    /// 按键
    /// </summary>
    public class SysButton
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 按钮名称
        /// </summary>
        public string ButtonName { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 是否为无效的（角色权限用户无法操作）
        /// </summary>
        public bool IsDisabled { get; set; }
        /// <summary>
        /// 上级菜单Id
        /// </summary>
        public int ParentId { get; set; }
    }
}
